import Vue from 'vue'
import VueRouter from 'vue-router'
import login from './views/login'
import home from './views/home'

import roles_batfront from './views/system/roles_batfront'
import userList_batfront from './views/system/userList_batfront'

import dataanalyse_medical from './views/dataanalyse/dataanalyse_medical'

Vue.use(VueRouter);

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes: [{
    path: '*',
    component: login,
  },
  {
      path: '/home',
      name:"主界面",
      component: home,
      children: [
      {
          path: 'roles_batfront',
          component: roles_batfront
      }, {
          path: 'userList_batfront',
          component: userList_batfront
      },
      {
          path: 'dataanalyse_medical',
          component: dataanalyse_medical
      },
      ]
  },
  ]
});

export default router;
